Repository navigation
Bridge S1: pattern + limit addressing, match report, distributions, broaden (#14367) - #14412
Conversation
…, broaden (#14367) Design doc/2026-11-24_design_message-bridge-buildout.md §4.1, slice S1: - One glob matching rule (src/glob.js): case-insensitive name-segment glob, deterministic name order, shared by fleet and notes surfaces. - Fleet: agent:<glob> in parseTargets/relay grammar, resolved against the registry at send time; optional limit N delivers to the first N matches; every send returns a match report {matched, delivered, recipients, remaining} and records a bridge_distribution row (batch, sender_addr, pattern, limit_n, matched, delivered, ts). - Broaden: a follow-up send with broaden:<batch> and an optional new limit/pattern delivers the original body to exactly the matched-but-undelivered remainder — the delivered set is the record, so nobody gets a batch twice. Only the original sender (or central) may broaden. - Notes: segment globs (muse/f*), limit + match report on sends, note_message gains a batch column, distributions recorded in the same table, broaden with the same remainder semantics. - MCP send_message gains limit/broaden and returns the match report. Tests: new node --test oracles in fleet/notes/relay suites naming the acceptance criteria (glob+limit name order, broaden remainder, idempotent re-broaden, distribution record contents).
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Verification evidence (run 45410331060, developing-today/fleet fleet-command, target HEAD e7cd26e, conclusion success):
Runner note: the executor image has no Acceptance: all four #14367 criteria are covered by the named tests above. PR left unmerged for Felix's review. |
…ttern-limit # Conflicts: # pkgs/message-bridge/worker/src/fleet.js # pkgs/message-bridge/worker/src/index.js # pkgs/message-bridge/worker/src/messages.js
|
Merge refresh (felix lane): merged current origin/main (
Re-verification (remote, fleet-command run 45416882627, Target HEAD verified |
Implements bridge build-out slice S1 (design
doc/2026-11-24_design_message-bridge-buildout.md§4.1, via PR #14364).What
src/glob.js): case-insensitive, name-segment glob, deterministic name order — shared by the fleet and notes surfaces.agent:<glob>inparseTargetsand the relay grammar, resolved against the registry at send time; optionallimit: Ndelivers to the first N matches in name order; every send returns a match report{matched, delivered, recipients, remaining}. Zero matches stays an error.bridge_distribution (batch, sender_addr, pattern, limit_n, matched, delivered, ts), written for every fleet and notes send; S2's pipeline consumes it.broaden: <batch>and an optional new limit/pattern re-delivers the original body to exactly the matched-but-undelivered remainder — the delivered set is the record, so a second identical broaden delivers nothing. Only the original sender (or central, on the fleet surface) may broaden.muse/f*),limit+ match report on sends,note_messagegains an additivebatchcolumn, distributions recorded in the same table, broaden with the same remainder semantics.send_messagegainslimit/broadenand returns the match report asreport.Verification
Remote via the fleet-command workflow (developing-today/fleet):
node: command not found(exit 127) — the known executor-image gap (code#14267 / fleet-command executor: ring/aws-lc-sys build-script binary fails to execute (os error 2) — native build-script dependency trees unbuildable dezren39/fleet#111), recorded here rather than skipped.bun <file>refuses node:test files outside its runner.bun test test/*.test.mjs— Execute step success on head e7cd26e. Executed counts and the named new tests will be quoted in a follow-up comment from the run log (the job's post-step is still draining as this PR opens).New tests name the acceptance oracles: glob+limit first-in-name-order with matched 2 / delivered 1 / remaining 1, broaden delivering exactly the remainder, a second broaden delivering nothing, distribution record contents, notes limit/report/broaden, and the relay/MCP path.
Left UNMERGED for Felix's review.
Closes #14367
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-24T14:15:49Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "c11f41086f57d626be7eb582763b721f8f557408" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.